#include "rrCintamaniAPI.h"
 
#ifndef H_rrCintamaniDocument
#define H_rrCintamaniDocument

class rrCintamaniDocument
{
public :
	rrCintamaniDocument( const FB::DOM::DocumentPtr & Doc );
	~rrCintamaniDocument();
	rrCintamaniElementPtr GetBody() const;
	rrCintamaniElementPtr CreateElement(const std::string &name) const;
	rrCintamaniElementVideoPtr CreateElementVideo(const std::string &name  ) const;
	void GetElementsByTagName(const std::string &name, std::vector<rrCintamaniElementPtr> & tagList ) const;
	rrCintamaniElementPtr GetElementFromPoint( int x, int y );
	FB::JSObjectPtr CreateEvent( const std::string & EventName ) const;
	bool DispatchEvent( const FB::JSObjectPtr & Event );
private :
	FB::DOM::DocumentPtr mDocument;

};

#endif